package com.kede.api.order.controller.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.kede.domain.PackageDomain;
import com.kede.ienum.order.CertiTypeEnum;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author:Pr.li
 * @Date: create in 2023/9/17 14:51
 */
@Data
public class CreatePackageOrderPo {

    @NotEmpty(message = "包裹不可为空")
    List<PackageDomain> packageList;

    /**
     * 来源认证id
     */
    Integer srcCerId;

    /**
     * 目标认证id
     */
    Integer descCerId;

    /**
     * 来源认证类型
     */
    CertiTypeEnum srcCerType;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    LocalDateTime endTime;

}
